/**
 * 
 */
package com.sgv.model.persistence;

import javax.ejb.Stateless;
import javax.ejb.TransactionAttribute;
import javax.ejb.TransactionAttributeType;
import javax.ejb.TransactionManagement;
import javax.ejb.TransactionManagementType;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import com.archtecture.control.facedes.PersistenceFacadeImplAbs;
import com.archtecture.control.facedes.PersistenceFacadeLocal;

/**
 * @author Enir F Silva Ferraz
 *
 */
@Stateless(name = "SGVPersistenceFacade")
@TransactionAttribute(TransactionAttributeType.SUPPORTS)
@TransactionManagement(TransactionManagementType.CONTAINER)
public class SGVPersistenceFacadeBean extends PersistenceFacadeImplAbs implements PersistenceFacadeLocal {

	@PersistenceContext(unitName = "SGV_PU")
	EntityManager manager;

	@Override
	public EntityManager getManager() {
		return manager;
	}

}
